package by.amakarevich.services;

import org.springframework.transaction.annotation.Transactional;

import by.amakarevich.datamodel.Hook;
import by.amakarevich.datamodel.Product;

public interface HookService {
	@Transactional
	void createNewHook(Hook hook, Product product);
	
	@Transactional
	Hook get(Long id);
	
	@Transactional
	void updateHook(Hook hook);
	
	@Transactional
	void removeHook(Long id);
	
	@Transactional
    void deleteAll();

}
